package cn.edu.cqut.entity;

import java.io.Serializable;
import java.time.LocalDate;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author HQYJ
 * @since 2020-06-24
 */
public class Record extends Model<Record> {

    private static final long serialVersionUID=1L;

    /**
     * 交往记录单编号
     */
    @TableId(value = "re_no", type = IdType.AUTO)
    private Integer reNo;

    /**
     * 事件发生日期
     */
    
    @DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDate reDate;

    /**
     * 地点
     */
    private String reSite;

    /**
     * 概要
     */
    private String reOutline;

    /**
     * 详细信息
     */
    private String reDetail;

    /**
     * 备注信息
     */
    private String reRemark;

    /**
     * 客户编号
     */
    private Integer cusNo;
    
    @TableField(exist = false)
    private String cusName;
    
    @TableField(exist = false)
    private String cusNoString;

    public Integer getReNo() {
        return reNo;
    }

    public void setReNo(Integer reNo) {
        this.reNo = reNo;
    }

   

    public LocalDate getReDate() {
		return reDate;
	}

	public void setReDate(LocalDate reDate) {
		this.reDate = reDate;
	}

	public String getReSite() {
        return reSite;
    }

    public void setReSite(String reSite) {
        this.reSite = reSite;
    }

    public String getReOutline() {
        return reOutline;
    }

    public void setReOutline(String reOutline) {
        this.reOutline = reOutline;
    }

    public String getReDetail() {
        return reDetail;
    }

    public void setReDetail(String reDetail) {
        this.reDetail = reDetail;
    }

    public String getReRemark() {
        return reRemark;
    }

    public void setReRemark(String reRemark) {
        this.reRemark = reRemark;
    }

    public Integer getCusNo() {
        return cusNo;
    }

    public void setCusNo(Integer cusNo) {
        this.cusNo = cusNo;
    }

    @Override
    protected Serializable pkVal() {
        return this.reNo;
    }
    
    public String getCusName() {
		return cusName;
	}


	public void setCusName(String cusName) {
		this.cusName = cusName;
	}

    @Override
    public String toString() {
        return "Record{" +
        "reNo=" + reNo +
        ", reDate=" + reDate +
        ", reSite=" + reSite +
        ", reOutline=" + reOutline +
        ", reDetail=" + reDetail +
        ", reRemark=" + reRemark +
        ", cusNo=" + cusNo +
        "}";
    }
}
